
<style type="text/css">    
    label.error { font-size: 11px; width: 160px; display: block; float: right; color: red; padding-left: 10px; padding-top: 10px;} 
</style> 

<div id="mid">

    <div class="welcome-text">Get a free business analysis report</div>
<?php 
    if(isset($myText)){ ?>
    <div id="getText"> Dear Sir/Madam,<br/><br/>
        We noticed that you have used our PACEM Diagnostics business tool a number of times recently.<br/>
        Please note that the PACEM Diagnostics report should not be used as a substitute for professional human resources, strategy, financial, and consulting advice. <br/>
        Kindly call us so we can discuss your existing report(s) and we look forward to assisting you in taking your organisation to greater heights.<br/><br/>

        Thank you.<br/>

        RtHE Consult Ltd.

    </div>
    <script>
        $('#getText').dialog({
            modal:true,
            width: 900,
            resizable:false,
            title: 'Exceed Registration Error',
            buttons:{
                 
                Close:function(){
                    $('#getText').dialog('close');
                }
            }
        });
        
    
    </script>

    <?php }
    ?>

<div id="leftcol">

    <div class="advan">
        Take advantage of our <span style="font-family:Wide Latin">PACEM</span> <span style="font-size:32px; font-family:Garamond"><i>Diagnostics<sup style="font-size:14px;">&reg;</sup></i></span>business tool
    </div>
    <div id="text">
        <p style="font-size:16px"><i>
                <ul style="padding-left:150px; margin-top: -45px;">
                    <li><i>A snapshot of your current business potential - people, systems and strategy factors.</i></li>
                    <li><i>Identification of key areas in need of change.</i></li>
                    <li><i>Provision of possible solution you can implement.</i></li>

                </ul>
            </i></p>
    </div>

</div>

<?php echo $this->Form->create('Info', array('id' => 'register-form', 'url' => array('controller' => 'Infos', 'action' => 'register'),'inputDefaults' => array('label' => false,'div' => false)));?>
<div id="rigtcol">
    <form id="register">
        <div> 

            <div class="label-input">Company Name:&nbsp;<span class="required-field">*</span></div>
            <div style="float:left">
                <?php echo $this->Form->input('company_name', array('class'=>'input', 'div' => false, 'label' => false, 'id'=>'company_name','value'=>'', 'placeholder'=>' ')); ?>
            </div>
        </div>
        <br/><br/><br/>

        <div class="label-input">Full Name:&nbsp;<span class="required-field">*</span></div>
        <div style="float:left">
            <?php echo $this->Form->input('name', array('class'=>'input', 'div' => false, 'label' => false, 'id'=>'name','value'=>'', 'placeholder'=>'')); ?>
        </div><br/><br/><br/>

        <div class="label-input">Position:&nbsp;<span class="required-field">*</span></div>
        <div style="float:left">
            <?php echo $this->Form->select('position', array('CEO/COO/GM'=>'CEO/COO/GM','Senior Manager'=>'Senior Manager','Junior Manager'=>'Junior Manager','Supervisor'=>'Supervisor','Senior Staff'=>'Senior Staff')); ?>
            <?php //echo $this->Form->input('position', array('class'=>'input', 'div' => false, 'label' => false, 'id'=>'position','value'=>'', 'placeholder'=>'')); ?>
        </div><br/><br/><br/>

        <div class="label-input">Email:&nbsp;<span class="required-field">*</span></div>
        <div style="float:left">
            <?php echo $this->Form->input('email', array('class'=>'input', 'div' => false, 'label' => false, 'id'=>'email','value'=>'', 'placeholder'=>'')); ?>
        </div><br/><br/><br/>

        <div class="label-input" style=""></div>
        <div style="float:left; font-family:Wide Latin; margin-left:88px;">

            <?php echo $this->Form->hidden('date_created', array('label' => false,'value'=> date("F j, Y, g:i a"))); ?>
            <?php echo $this->Form->button(__('Click For PACEM Test',true), array('label' => false, 'class'=>'save-btn', 'id' => 'save-btn', 'type'=>'submit')); ?>
        </div>
        <br/><br/><br/>
    </form></div>
</div>



<?php
//Js for Bootstrap UI
//echo $this->Html->script('bootstrap/login.js', array('inline' => true));
?>

<script type="text/javascript">
   $("#save-btn").click(function() {
              $("#register-form").validate({ 
                rules: { 
                  'data[Info][company_name]': "required",
                  'data[Info][name]': "required",
                  'data[Info][position]': "required",// simple rule, converted to {required:true} 
                  'data[Info][email]': {// compound rule 
                  required: true, 
                  email: true 
                }
                },                
                messages: { 
                  'data[Info][company_name]': "Please enter company name." ,
                  'data[Info][name]':"Please enter your full name",
                  'data[Info][position]': "Please enter your position"
                } 
              }); 
              
            });
</script>
